package com.zhishu.system.action;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.zhishu.api.ITaskApi;
import com.zhishu.system.service.ParseService;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

@Controller
public class ParseAction {
	private static final Logger logger = Logger.getLogger(ParseAction.class);
	@Resource
	private ITaskApi parseService;

	@ResponseBody
	@RequestMapping(value = "", method = RequestMethod.POST)
	public String redisId(String url, HttpServletRequest request, HttpServletResponse response) {
		String redisId = "";
		String requestId="",html = "";
		Boolean flag=false;
		try {
			flag=parseService.redisStore(requestId,html);
		} catch (Exception e) {
			logger.info("",e);
		}
		
		return redisId;

	}

}
